#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdio.h>
int main()
{
    int a;
    int ret = 0;
    scanf("%d", &a);
    for (int i = 1; i <= a; i++)
    {
        for (int j = i; j <= a; j++)
        {
            ret++;
            if (ret < 10)
            {
                printf("0");
            }
            printf("%d", ret);
        }
        printf("\n");
    }
}
